//
//  IGMessageModel.h
//  jingdongfang
//
//  Created by BOE on 2017/8/18.
//  Copyright © 2017年 LJL. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "IGCommentBean.h"
#import "IGArtWorksModel.h"
#import "IGBaseResp.h"
#import "IGShareModel.h"
#import "IGTopicDetailVideoModel.h"
#import "IGCommentBean.h"

/* Video的宽高比 */
typedef NS_ENUM(NSInteger, VideoScreenRatio) {
    VideoScreenRatioWEH = 1, //W=H
    VideoScreenRatioWBH,     //W>H
    VideoScreenRatioWSH      //W<H
};

//动态类型（1-图片，2-视频，3-普通文字）
typedef NS_ENUM(NSInteger, FeedType) {
    FeedTypeImage,
    FeedTypeMovie,
    FeedTypeInfo
};

/* Video的类型 */
typedef NS_ENUM(NSInteger, VideoResType) {
    VideoResTypeSmall = 1,    //1-小视频（原有字段不变）
    VideoResTypeRecord,       //2-直播回放
    VideoResTypeLong          //3-长视频（取video_list字段）
};

@interface IGTopicModel : IGBaseModel

@property (nonatomic, assign) FeedType feedType;         ///>Feed详情类型
@property (nonatomic, copy) NSString *tid;               ///>话题的id
@property (nonatomic, copy) NSString *userId;            ///>话题发布者id
@property (nonatomic, copy) NSString *userNick;          ///>话题发布者名字
@property (nonatomic, copy) NSString *userImg;           ///>话题发布者头像
@property (nonatomic, copy) NSString *publishTime;       ///>话题发布的时间
@property (nonatomic, copy) NSString *createAt;          ///>话题发布的时间 转换后的时间戳
@property (nonatomic, copy) NSString *content;           ///>话题发布的内容
@property (nonatomic, copy) NSString *zanNums;           ///>话题中👍的数量
@property (nonatomic, assign) BOOL isZan;                ///>是否点赞
@property (nonatomic, copy) NSString *isCollection;      ///>是否关注
@property (nonatomic, copy) NSString *commentNums;       ///>话题中评论的数量
@property (nonatomic, copy) NSString *circleId;          ///>话题中关联圈子的ID
@property (nonatomic, copy) NSString *circleName;        ///>话题中关联圈子的名称
@property (nonatomic, copy) IGArtWorksModel *product;                        ///>话题中关联的艺术作品
@property (nonatomic, strong) NSMutableArray<IGCommentBean> *lstComments; ///>话题中评论
@property (nonatomic, copy) NSArray *imgs;                                   ///>话题中小图
@property (nonatomic, copy) NSArray *imgsBig;                                ///>话题中大图

@property (nonatomic, copy) NSString *coverUrl;                    ///< 视频封面图片地址
@property (nonatomic, strong) IGTopicDetailVideoModel *video;      ///< 视频模块model
@property (nonatomic, assign) VideoResType resType;                ///< Video的类型
@property (nonatomic, assign) VideoScreenRatio videoScreenRatio;   ///< 外部赋值 目前都是 VideoResTypeSmall
@property (nonatomic, copy) NSString *movieUrl;                    ///< 外部赋值

///>分享的时候分享链接
@property (nonatomic, copy) NSString *url;

///> 获取分享的参数
- (IGShareModel *)getShareModel;
///>该话题是否关联作品
- (BOOL)containProduct;
/** 计算小视频的宽高比 */
- (void)calVideoScreenRatioAndMovieUrl;

///是否更新缓存高度
@property (nonatomic, assign) BOOL shouldUpdateCache;


@end

@protocol IGTopicModel <NSObject>

@end
